package com.isoft.demo01.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.isoft.demo01.entity.Game;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface GameManageService {
    /**
     * 添加游戏
     * @param game
     * @return
     */
    default boolean add(Game game){
        return false;
    }

    /**
     * 删除一条
     * @param gameid
     * @param gamePhotoPath
     * @param request
     * @return
     */
    default public boolean delById(Integer gameid, String gamePhotoPath, HttpServletRequest request){
        return false;
    }

    /**
     * 删除多条
     * @param
     * @param gamePhotoPath
     * @param request
     * @return
     */
    default boolean delByIds(Integer[] ids, String gamePhotoPath, HttpServletRequest request){
        return false;
    }

    /**
     * 更新
     * @param game
     * @return
     */
    default boolean update(Game game){
        return false;
    }

    /**
     * 查看所有
     * @param current
     * @param size
     * @param gamename
     * @param introduce
     * @param typeid
     * @return
     */
    default Page<Game> getMore(Integer current, Integer size, String gamename, String introduce, Integer typeid){
        return null;
    }

    /**
     * 根据id查看详情
     * @param gameid
     * @return
     */
    default Game getById(Integer gameid){
        return null;
    }

    default public List<Game>getByTypeId(Integer typeid, Integer rowsCount){
        return null;
    }

}
